package com.twetec.cms.adapter.pc.backend.exception;


import com.twetec.cms.common.exception.PermissionExceptionEnum;

public class PermissionException extends RuntimeException {

    private final Integer code;

    private final String errorMessage;

    public PermissionException(PermissionExceptionEnum exception) {
        super(exception.getMessage());
        this.code = exception.getCode();
        this.errorMessage = exception.getMessage();
    }
}